Otherwise there's a lot of test spam.
Signed-off-by: Colin Walters <walters@verbum.org>
# libtest_exit_cmds+=(expr).
libtest_exit_cmds=()
run_exit_cmds() {
+ # Quiet termination
+ set +x
for expr in "${libtest_exit_cmds[@]}"; do
eval "${expr}" || true
done
}
libtest_cleanup_gpg () {
+ set +x
local gpg_homedir=${1:-${test_tmpdir}/gpghome}
- gpg-connect-agent --homedir "${gpg_homedir}" killagent /bye || true
+ gpg-connect-agent --homedir "${gpg_homedir}" killagent /bye &>/dev/null || true
}
libtest_exit_cmds+=(libtest_cleanup_gpg)